package org.daidai.abstrusewriting.homepage.hot.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Administrator on 2016/11/2.
 */

public class RecommendDetail implements Parcelable {
    @SerializedName("detail")
    private Detail mDetail;
    @SerializedName("user")
    private User mUser;
    @SerializedName("recs")
    private Recs mRecs;

    protected RecommendDetail(Parcel in) {
    }

    public static final Creator<RecommendDetail> CREATOR = new Creator<RecommendDetail>() {
        @Override
        public RecommendDetail createFromParcel(Parcel in) {
            return new RecommendDetail(in);
        }

        @Override
        public RecommendDetail[] newArray(int size) {
            return new RecommendDetail[size];
        }
    };

    public Detail getDetail() {
        return mDetail;
    }

    public Recs getRecs() {
        return mRecs;
    }

    public User getUser() {
        return mUser;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }

    public class Detail{
        @SerializedName("albumId")
        private String albumId;
        @SerializedName("intro")
        private String intro;
        @SerializedName("introRich")
        private String introRich;

        public String getAlbumId() {
            return albumId;
        }

        public String getIntro() {
            return intro;
        }

        public String getIntroRich() {
            return introRich;
        }
    }
    public class User{
        @SerializedName("uid")
        private String uid;
        @SerializedName("nickname")
        private String nickname;
        @SerializedName("smallLogo")
        private String smallLogo;
        @SerializedName("ptitle")
        private String ptitle;
        @SerializedName("personalSignature")
        private String personalSignature;
        @SerializedName("followers")
        private String followers;

        public String getFollowers() {
            return followers;
        }

        public String getNickname() {
            return nickname;
        }

        public String getPersonalSignature() {
            return personalSignature;
        }

        public String getPtitle() {
            return ptitle;
        }

        public String getUid() {
            return uid;
        }

        public String getSmallLogo() {
            return smallLogo;
        }
    }
    public class Recs{
        @SerializedName("list")
        private List<RecommendItemDetail> mItemDetailList;
        @SerializedName("pageId")
        private int pageId;

        public List<RecommendItemDetail> getItemDetailList() {
            return mItemDetailList;
        }

        public int getPageId() {
            return pageId;
        }
    }
}
